package com.theaf.basemodule.common.model.mesTemplate;

import com.theaf.core.annotation.FieldCn;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.sql.Timestamp;

@ApiModel("消息模版_途径")
@Entity
@Table(name = "mes_template_way")
@Data
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@DynamicInsert
public class MesTemplateWay {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "user_id_req")
    @SequenceGenerator(name = "user_id_req", sequenceName = "sys_req")
    @FieldCn(value = "id")
    private Long id;
    @Column(name = "template_id")
    @FieldCn(value = "模版id")
    private long templateId;
    @Column(name = "title")
    @FieldCn(value = "标题")
    private String title;
    @Column(name = "intro")
    @FieldCn(value = "简介")
    private String intro;
    @Column(name = "content")
    @FieldCn(value = "内容")
    private String content;
    @Column(name = "content_param")
    @FieldCn(value = "内容参数")
    private String contentParam;
    @Column(name = "type")
    @FieldCn(value = "类型", note = "1短信2微信3站内")
    private Integer type;
    @Column(name = "resend")
    @FieldCn(value = "是否失败重发")
    private Boolean resend;
    @Column(name = "create_time")
    @FieldCn(value = "创建时间")
    private Timestamp createTime;
    @Column(name = "create_user")
    @FieldCn(value = "创建人")
    private String creater;
    @Column(name = "update_time")
    @FieldCn(value = "修改时间")
    private Timestamp updateTime;
    @Column(name = "update_user")
    @FieldCn(value = "修改人")
    private String updater;
    @Column(name = "status")
    @FieldCn(value = "状态", note = "1启用2禁用")
    private Integer status;
}
